package com.pku.control;

import android.app.Application;
import android.content.Context;

import com.lzy.okgo.OkGo;

public class ControlApplication extends Application {
    private static ControlApplication mInstance;
    @Override
    public void onCreate() {
        super.onCreate();
        OkGo.getInstance().init(this);
    }
    /**
     * 获取context
     * @return
     */
    public static Context getInstance() {
        if (mInstance == null) {
            mInstance = new ControlApplication();
        }
        return mInstance;
    }
}
